home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList_0597 / AMOSLIST / text0325.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  2.1 KB  |  44 lines

  1. On 27-May-97, Branko Collin wrote:
  2. >>No problem, but do you actually want me to display the score 
  3. >>and lives?  The easiest way to do that would be using bobs, 
  4. >>so they would have to use the same palette as those used by the 
  5. >>bobs in each section of the game, and that would be nasty.
  6. >I have a proc in the Procedure Library on Aminet that will calculate the
  7. >brightest, mid brightest and least brightest colour on a screen. This is
  8. >specifically for cases like this, where you need to allocate contrasting
  9. >colours without knowing what they are beforehand. 
  10. >Will all modules have scores and lives? If so, will those scores be within a
  11. >uniform range (you cannot have one module giving a maximum score of 100 and
  12. >another one a score of 100,000,000.
  13.  
  14. Well, the score will be carried from one stage to another, as will lives, so
  15. yes.
  16.  
  17. >If you want to be sure about the display, just open your own screen. Reserve
  18. >screen 7 for hi-scores. Then tell everyone that they have a statusline of X
  19. >characters wide that they can send data to. Give the proc that receives this
  20. >data a standard name (STATUS[DETA$]).
  21.  
  22. That seems best, Rob. Open a screen 640x12 or whatever you need. Have a
  23. procedure to call your score update and make sure the position of the screen
  24. can be defined.
  25.  
  26. Procedure SCORE[SCOREY]
  27.  
  28. Remember, both lives and score are gloabal, so you don't need to pass them in.
  29.  
  30. Well met and godspeed,
  31.                       Giark
  32.                                            joehick@golden.net
  33.                              http://www.golden.net/~joehick/fbn/index.html
  34.      ______  ______    _____  .------------------------------------------.
  35.     / ____/ / __  /   / ___ \ !     AMOS games, utilities, demos, etc.   !
  36.    / /__   / /_/ /   / /  / / !                                          !
  37.   / ___/  / ___  |  / /  / /  !       CyberSpace BBS (519)579-0072       !
  38.  / /     / /__/ /  / /  / /   !     on A2000 060/50MHz (519)579-0173     !
  39. /_/     /______/  /_/  /_/    !                                          !
  40.    Fly By Nite Videe-Oh!      !  FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
  41.                               `------------------------------------------'
  42.  
  43.  
  44.